package com.hj.response;

/**
 * @Description 响应枚举
 * @author hj
 */
public enum RespInfo {


    /**
     * 成功
     */
    SUCCESS(200, "成功"),
    UNAUTHENTICATED(203, "认证失败"),
    NO_USERNAME(203, "用户名不存在"),
    /**
     * 失败
     */
    FAIL(201, "失败");


    /**
     * code
     */
    private final int respCode;

    /**
     * msg
     */
    private final String respMsg;

    RespInfo(Integer respCode, String respMsg) {
        this.respCode = respCode;
        this.respMsg = respMsg;
    }

    public int getRespCode() {
        return respCode;
    }

    public String getRespMsg() {
        return respMsg;
    }


}
